#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "PIRecurrance.h"


enum PISensitivityType {
    PISensitivityTypeNone = 0,
    PISensitivityTypeNormal,
    PISensitivityTypePersonal,
    PISensitivityTypePrivate,
    PISensitivityTypeConfidential
};


@interface PIObject : NSObject
{
    NSString* key;
    BOOL native;
    BOOL augmented;
    
    NSString* title;
    NSString* icon;

    NSDate* startDate;
    
    NSString* calendar;
    NSString* calendarIcon;
    UIColor* calendarColor;

    BOOL repeating;
    PIRecurrance* recurrance;

    PISensitivityType sensitivity;
    
    NSString* notes;
}

@property (readonly) NSString* key;

@property (readonly, getter=isNative) BOOL native;

@property (assign, getter=isAugmented) BOOL augmented;

@property (readonly) NSString* title;
@property (readonly) NSString* icon;

@property (retain) NSDate* startDate;

@property (readonly) NSString* calendar;
@property (readonly) NSString* calendarIcon;
@property (readonly) UIColor* calendarColor;

@property (readwrite, assign, getter=isRepeating) BOOL repeating;
@property (retain) PIRecurrance* recurrance;

@property (readwrite, assign) PISensitivityType sensitivity;

@property (retain) NSArray* tags;

@property (readwrite, retain) NSString* notes;


- (NSString*)notesSummary;

@end


@interface NSArray (PIObject)

- (id)piObjectForKey:(NSString*)key;

@end


